<?php
	$registry = Yapary_SingletonRegistry::getInstance();

	$registry->oHeader->addCssFile('frontend/style/index.css');
	$registry->oHeader->addCssFile('frontend/style/header.css');
	$registry->oHeader->addCssFile('frontend/style/content.css');
	$registry->oHeader->addCssFile('frontend/style/contentData.css');
	$registry->oHeader->addCssFile('frontend/style/footer.css');
	$registry->oHeader->addCssFile('frontend/style/submenu.css');

	// Meta-Tag
	$registry->oMetaTag->setCopyright('JoRuf, ToAlt, FaBinder, KaRain');
	$registry->oMetaTag->setDescription('PDF-Shop');

	// MVC laufen lassen
//	echo $oAutoloader->getDebugInfo();
	$oMVCHandler->run();
	echo $oMVCHandler->getContent();
?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
	<head>
		<?php
			echo $registry->oHeader->display();
			echo $registry->oMetaTag->display();
		?>
	</head>
	<body>
		<div id="header">
			<div id="centered">
			<?php
		    	echo $registry->header;
			?>
			</div>
		</div>
    	<div id="content">
    		<div id="centered">
	    		<?php
		    		echo $registry->content;
				?>
			</div>
    	</div>
    	<div id="footer">
    		<div id="centered">
    		<?php
				echo 'MVC --> '.$registry->routeName.'<br />';
		    	echo $registry->footerMenu;
	    		echo 'footer';
	    	?>
	    	</div>
		</div>
	</body>
</html>